package router

import (
	"github.com/gin-gonic/gin"
	"video_client/basic/config"
	"video_client/handler/api"
	utils "video_client/utlis"
)

func UserModel(r *gin.RouterGroup) {
	userModel := r.Group("user")
	{
		userModel.POST("/sendSms", api.SendSms)
		userModel.POST("/createUser", api.CreateUser)
		userModel.POST("/loginUser", api.LoginUser)
		userModel.Use(utils.JWTAuth(config.JWT_SELECT_KEY))
		userModel.POST("/personalHomepage", api.PersonalHomepage)
		userModel.POST("/userHomepage", api.UserHomepage)
	}
}
